package by.grsu.verkhovodko.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

public class Admin extends WebPage{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1433574856194024850L;
	
	
	@SuppressWarnings({ "rawtypes", "serial" })
	public Admin(){
		super();

		add(new Link("passengers") {
			@Override
			public void onClick() {
				setResponsePage(PassengersListPage.class );
			}
		});

		add(new Link("addNewTrain") {
			@Override
			public void onClick() {
				setResponsePage(new TrainEditPage());
			}
		});
		
		add(new Link("seeAllTrains") {
			@Override
			public void onClick() {
				setResponsePage(TrainListPage.class);
			}
		});
		
		

}
}
